  RUSTFLAGS="--remap-path-prefix=$(pwd)=/build/" cargo build --release --locked
  cd man
  for i in *.scd
  do
    scdoc < "$i" > "$(basename "$i" .scd)".roff
  done

  install -Dm755 "$SRC/greetd-$surum/target/release/greetd"  "$PKG/usr/bin/greetd"
  install -Dm755 "$SRC/greetd-$surum/target/release/agreety"  "$PKG/usr/bin/agreety"

    
  echo 'u greeter - "greetd greeter user" - /bin/bash' |
    install -Dm644 /dev/stdin "$PKG/usr/lib/sysusers.d/greetd.conf"

  install -Dm644 "/sources/greetd.pam?h=greetd" "$PKG/etc/pam.d/greetd"

  install -Dm644 "$SRC/greetd-$surum/config.toml" "$PKG/etc/greetd/config.toml"
  